package cn.huobi.block;

import cn.huobi.user.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class GetUserByIdBlockHandler {

    public static User getUserByIdFallback(@PathVariable("id") Long id, BlockException blockException){
        return new User(-1L, "限流", "装不下了，快出去");
    }
}
